//
//  BCUserWalletCurrCell.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/5.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCUserWalletCurrCell.h"

@interface BCUserWalletCurrCell ()

@property (nonatomic, strong) QMUILabel *currLabel;

@end

@implementation BCUserWalletCurrCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.currLabel = [QMUILabel new];
        self.currLabel.font = [UIFont systemFontOfSize:16 weight:UIFontWeightRegular];
        self.currLabel.textColor = [UIColor qmui_colorWithHexString:@"#333333"];
        [self.contentView addSubview:self.currLabel];
        [self.currLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView).offset(20.0);
            make.right.mas_equalTo(self.contentView).offset(-20.0);
            make.centerY.mas_equalTo(self.contentView);
        }];
        //
        [self addSubview:self.separatorLine];
        [self.separatorLine mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self).offset(10.0);
            make.right.mas_equalTo(self).offset(-10.0);
            make.bottom.mas_equalTo(self);
            make.height.mas_equalTo(.5);
        }];
    }
    return self;
}

- (void)setCurrData:(BCUserWalletCurrDataModel *)currData {
    _currData = currData;
    //
    self.currLabel.text = currData.acronyms;
}

@end
